import { acceptHMRUpdate, defineStore } from 'pinia'
import type { Order } from '~/model'

export const usePreviewStore = defineStore('preview', {
  state: () => {
    return {
      form: null as (Order | null),
    }
  },
  persist: true,
})

if (import.meta.hot)
  import.meta.hot.accept(acceptHMRUpdate(useUserStore as any, import.meta.hot))
